package com.dotflat.physicalevaluate.domain.pe;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 测评维度
 */

@Data
@Entity
@Table(name = "pe_dimension", uniqueConstraints = {@UniqueConstraint(columnNames = {"name", "project"})})
@EqualsAndHashCode(callSuper = true)
public class Dimension extends Domain {

    @Column(columnDefinition = "varchar(50) COMMENT '维度'")
    private String name;

    @Column(columnDefinition = "varchar(50) COMMENT '测查项目'")
    private String project;

    @Column(columnDefinition = "int default 0 COMMENT '维度码'")
    private Integer code;

    @Column(columnDefinition = "int default 0 COMMENT '最大支持月份'")
    private Integer maxMonth;

    @Column(columnDefinition = "int default 0 COMMENT '最大支持月份'")
    private Integer minMonth;

    //测查要求	测查方法  		通过结论	不通过结论	提升建议
    // [综合评价	概况评估]  代码生成
    @Column(columnDefinition = "varchar(500) COMMENT '测查要点' ")
    private String keyPoint;

    @Column(columnDefinition = "varchar(500) COMMENT '测查方法' ")
    private String guide;

    @Deprecated
    @Column(columnDefinition = "varchar(500) COMMENT '通过结论' ")
    private String passResult;

    @Deprecated
    @Column(columnDefinition = "varchar(500) COMMENT '不通过结论' ")
    private String failResult;

    @Column(columnDefinition = "varchar(500) COMMENT '提升建议' ")
    private String advise;
}
